package com.blog.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.ai.chat.client.AdvisedRequest;
import org.springframework.ai.chat.client.RequestResponseAdvisor;

import java.util.Map;

/**
 * @ClassName ChatLoggingService
 * @Destription 实现RequestResponseAdvisor---记录日志
 * @Author 天堂小野花
 * @Date 2025/8/17  21:10
 * @Version 1.0
 */
@Slf4j
public class ChatLoggingAdvisorService implements RequestResponseAdvisor {
    @Override
    public AdvisedRequest adviseRequest(AdvisedRequest request, Map<String, Object> context) {
        log.info(">>>>ai request>>>>"+request);
        return request;
    }
}
